package com.cloud.servicefeign.clients.fallback;

import com.cloud.servicefeign.clients.SchedualServiceHi;
import org.springframework.stereotype.Component;

/**
 * 熔断机制 当服务调用不了或者其他意外情况时调用此方法
 *
 * @author lcc
 * create 2018-08-10
 **/
@Component
public class SchedualServiceHiHystric implements SchedualServiceHi {
    @Override
    public String sayHiFromClientOne(String name,String port) {
        return "sorry, you are fail,"+name+"port: "+port;
    }
}